//hdader-scroll-menu的border-bottom
$--eve-scroll-border-bottom: 2px solid transparent;
$--eve-scroll-color-active: #fff;
// $--eve-scroll-color: $--border-color-light;
$--eve-scroll-color: #fff;
.eve-scroll {
  width: 100%;
  &__content {
    text-align: center;
  }
  &__swiper {
    //防止鼠标右击出现border
    outline: none;
  }
  &__menu {
    width: 100%;
  }
  &__item {
    outline: none;
    width: 100%;
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
    user-select: none;
  }
}

.eve-scroll__swiper {
  .swiper-button-prev:after,
  .swiper-button-next:after {
    font-size: 14px;
  }

  .swiper-button-next,
  .swiper-container-rtl .swiper-button-prev {
    // color: white;
    right: -10px;
  }
  .swiper-button-prev,
  .swiper-container-rtl .swiper-button-next {
    // color: white;
    left: -10px;
  }
}

.eve-scroll__menu {
  user-select: none;
  .el-menu.el-menu--horizontal {
    border-bottom: solid 1px transparent;
  }
  /* 菜单的标题 */
  .el-submenu__title {
    height: 56px;
    line-height: 56px;
    color: white;
  }
  // 标题选中颜色和线
  .el-submenu .el-submenu__title {
    span {
      padding: 0 10px 10px 10px;
    }
  }
  //去掉箭头
  .el-submenu__title i {
    color: transparent;
  }
  .el-menu-item {
    span {
      padding: 0 10px 10px 10px;
    }
  }
}

/****scroll-menu****/
.eve-scroll__menu.eve-scroll__menu-item {
  // 标题选中颜色和线
  .el-submenu.is-active .el-submenu__title {
    span {
      // border-bottom: $--eve-scroll-border-bottom;
      padding: 0 10px 10px 10px;
    }
  }
  .el-menu-item.is-active {
    span {
      // border-bottom: $--eve-scroll-border-bottom;
      padding: 0 10px 10px 10px;
    }
  }
  .el-menu-item.is-active {
    color: $--color-primary;
  }
  .el-menu-item,
  .el-submenu__title {
    height: 56px;
    line-height: 51px;
  }
}

/****hdader-scroll-menu****/
.eve-scroll__menu.eve-header__menu-item {
  // 标题选中颜色和线
  .el-submenu.is-active .el-submenu__title {
    position: relative;
    span {
      // border-bottom: $--eve-scroll-border-bottom;
      padding: 0px 10px 10px 10px !important;
      //高亮的透明白
    }
    &:after {
      display: block;
      content: '';
      width: 70%;
      height: 3px;
      background: #fff;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      margin-top: 10px;
      border-radius: 1.5px;
      border-bottom: none;
    }
  }

  .el-menu-item.is-active {
    position: relative;
    span {
      // border-bottom: $--eve-scroll-border-bottom;
      padding: 0px 10px 10px 10px !important;
    }
    &:after {
      display: block;
      content: '';
      width: 70%;
      height: 3px;
      background: #fff;
      position: absolute;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
      margin-top: 10px;
      border-radius: 1.5px;
      border-bottom: none;
    }
  }
}

.eve-scroll__border-none.el-menu.el-menu--horizontal {
  border-bottom: solid 1px transparent;
}

/*header组件的菜单样式 */
.eve-header__menu-item {
  .el-submenu__title:focus,
  .el-submenu__title:hover {
    background-color: transparent !important;
    color: $--eve-scroll-color-active !important;
    font-weight: bold;
  }

  //标题的颜色
  .el-submenu .el-submenu__title span {
    color: $--eve-scroll-color;
  }

  //标题选中的颜色
  .el-submenu.is-active {
    .el-submenu__title {
      span {
        color: $--eve-scroll-color-active;
        font-weight: bold;
      }
    }
  }

  .el-menu-item {
    span {
      color: $--eve-scroll-color;
      &:focus {
        color: $--eve-scroll-color-active;
        font-weight: bold;
      }
      &:hover {
        color: $--eve-scroll-color-active;
        font-weight: bold;
      }
    }
  }

  /*里面最底层孩子项的颜色 */
  .el-menu-item:focus,
  .el-menu-item:hover {
    background-color: transparent !important;
    color: $--eve-scroll-color-active !important;
    font-weight: bold;
  }
  .el-menu-item.is-active {
    span {
      color: $--eve-scroll-color-active;
      font-weight: bold;
    }
  }
}

ul[role='menu'] {
  .eve-header__menu-item {
    .el-menu-item {
      background-color: $--color-primary !important;

      &:focus {
        background-color: $--color-primary-light-2 !important;
      }
      &:hover {
        background-color: $--color-primary-light-2 !important;
      }
      span {
        color: $--eve-scroll-color-active;
        font-weight: bold;
      }
    }
    .el-submenu__title {
      background-color: $--color-primary !important;
      &:focus {
        background-color: $--color-primary-light-2 !important;
      }
      &:hover {
        background-color: $--color-primary-light-2 !important;
      }
    }
    //小图标
    .el-submenu__title i {
      color: $--eve-scroll-color-active;
      font-weight: bold;
    }
    .el-submenu__title span {
      color: $--eve-scroll-color-active;
      font-weight: bold;
    }
  }
}

/*以下是纯粹的scroll组件的菜单样式 */
.eve-scroll__menu-item {
  .el-submenu__title:focus,
  .el-submenu__title:hover {
    background-color: transparent !important;
    color: $--color-primary !important;
  }
  .el-submenu.is-active {
    .el-submenu__title {
      color: $--color-primary;
    }
  }

  .eve-scroll__swiper {
    .swiper-button-next,
    .swiper-container-rtl .swiper-button-prev {
      color: $--color-primary;
    }
    .swiper-button-prev,
    .swiper-container-rtl .swiper-button-next {
      color: $--color-primary;
    }
  }

  .el-menu-item:focus,
  .el-menu-item:hover {
    background-color: transparent !important;
    color: $--color-primary !important;
  }
  .el-menu-item.is-active {
    span {
      color: $--color-primary;
    }
  }
}

ul[role='menu'] {
  .eve-scroll__menu-item {
    .el-menu-item {
      background-color: #fff !important;
    }
    .el-submenu__title {
      background-color: #fff !important;
    }
    .el-submenu__title span {
      color: $--color-primary;
    }
  }
}
